package com.iot.spi.handler;

import com.alibaba.fastjson2.JSON;
import com.iot.spi.core.annotation.Topic;
import com.iot.spi.core.emqx.handler.EmqxProductPackHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Topic(productCode = "WATCH", modelCode = "UD")
@Component
@Slf4j
public class DemoHandler implements EmqxProductPackHandler {

    @Override
    public void handle(String r) {
        log.info(JSON.toJSONString(r));
    }
}
